home *** CD-ROM | disk | FTP | other *** search
- Subject: RE: Part Scripting Question
- Sent: 7/31/96 3:46 PM
- Received: 7/31/96 4:11 PM
- From: Chris Hunt, chris_hunt@yes.optus.com.au
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Serge wrote:
-
- "Since scriptable parts inherit from FW_MPartScriptable (or
- FW_MEmbeddingPartScriptable), it looks like parts can have properties.
- However, I can't figure out how one does specify part properties inside the
- 'aete' resource. Can someone tell me how this is done?"
-
- Here's a snippet based on the OpenDoc PartMaker sample code for scriptable part editors (aete resource file) and my part editor:
-
- *****
- /*
- *-------------------------------------------
- * Classes
- *-------------------------------------------
- */
- {
- /*
- *-------------------------------------------
- * cPart
- *-------------------------------------------
- */
- "CLA_SUIR",
- kCLA_SUIREditorOSType,
- "The root CLA_SUIR object.",
- {
- /*
- *======================================================
- * New Properties
- *======================================================
- */
-
- /*
- * pContents
- */
- "contents",
- pContents,
- typeChar,
- "The text displayed by the part.",
- reserved,
- singleItem,
- notEnumerated,
- readWrite,
- reserved, reserved, reserved, reserved, reserved, reserved, reserved, reserved,
- noApostrophe,
- notFeminine,
- notMasculine,
- singular,
- },
- {
- /*
- *======================================================
- * Contained Elements
- *======================================================
- */
-
- },
-
- ...
- }
- *****
- The above aete text defines the cPart class with a property named pContents.
-
- 'hope that this helps.
-
- Regards,
-
- Christopher Hunt ?%^)
- Class Action Pty. Ltd.
- Wollongong, NSW
- AUSTRALIA
-
- e-mail: chris_hunt@yes.optus.com.au
-